package org.rayken.trix.commons.card;

public enum Rank {

    SEVEN(7, "7"),
    EIGHT(8, "8"),
    NINE(9, "9"),
    TEN(10, "T"),
    JACK(11, "J"),
    QUEEN(12, "Q"),
    KING(13, "K"),
    ACE(14, "A");

    private int rank;
    private String name;

    private Rank(int rank, String name) {
		this.rank = rank;
		this.name = name;
    }
    
    public int getRank() {
		return rank;
	}

	public String getName() {
		return name;
	}
	
	public String getLongName(){
		return name().charAt(0) + name().substring(1).toLowerCase();
	}
	
	@Override
    public String toString() {
    	return this.name;
    }

}
